package com.smart.community.feign.parking;

import com.smart.community.commons.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 停车服务Feign降级处理
 * 
 * @author Wu.Liang
 */
@Slf4j
@Component
public class ParkingFeignClientFallback implements ParkingFeignClient {
    
    @Override
    public Result<?> getParkingSpace(Long userId) {
        log.warn("停车位服务调用失败，用户ID: {}", userId);
        return Result.fail("停车位服务暂时不可用");
    }
    
    @Override
    public Result<?> getParkingRecords(Long userId) {
        log.warn("停车服务调用失败，用户ID: {}", userId);
        return Result.fail("停车服务暂时不可用");
    }
    
    @Override
    public Result<?> getParkingFee(Long userId) {
        log.warn("停车费用服务调用失败，用户ID: {}", userId);
        return Result.fail("停车费用服务暂时不可用");
    }
} 
